package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.system.domain.ShopeeshopinfoCountry;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ShopeeshopinfomonitorMapper;
import com.ruoyi.system.domain.Shopeeshopinfomonitor;
import com.ruoyi.system.service.IShopeeshopinfomonitorService;
import com.ruoyi.common.core.text.Convert;

/**
 * shopee店铺监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2020-12-26
 */
@Service
public class ShopeeshopinfomonitorServiceImpl implements IShopeeshopinfomonitorService 
{
    @Autowired
    private ShopeeshopinfomonitorMapper shopeeshopinfomonitorMapper;

    /**
     * 查询shopee店铺监控
     * 
     * @param shopid shopee店铺监控ID
     * @return shopee店铺监控
     */
    @Override
    public Shopeeshopinfomonitor selectShopeeshopinfomonitorById(String shopid)
    {
        return shopeeshopinfomonitorMapper.selectShopeeshopinfomonitorById(shopid);
    }

    @Override
    public Shopeeshopinfomonitor selectShopeeshopinfomonitorByPrimary(ShopeeshopinfoCountry shopid) {
        return shopeeshopinfomonitorMapper.selectShopeeshopinfomonitorByPrimary(shopid);
    }

    /**
     * 查询shopee店铺监控列表
     * 
     * @param shopeeshopinfomonitor shopee店铺监控
     * @return shopee店铺监控
     */
    @Override
    public List<Shopeeshopinfomonitor> selectShopeeshopinfomonitorList(Shopeeshopinfomonitor shopeeshopinfomonitor)
    {
        return shopeeshopinfomonitorMapper.selectShopeeshopinfomonitorList(shopeeshopinfomonitor);
    }

    /**
     * 新增shopee店铺监控
     * 
     * @param shopeeshopinfomonitor shopee店铺监控
     * @return 结果
     */
    @Override
    public int insertShopeeshopinfomonitor(Shopeeshopinfomonitor shopeeshopinfomonitor)
    {
        return shopeeshopinfomonitorMapper.insertShopeeshopinfomonitor(shopeeshopinfomonitor);
    }

    /**
     * 修改shopee店铺监控
     * 
     * @param shopeeshopinfomonitor shopee店铺监控
     * @return 结果
     */
    @Override
    public int updateShopeeshopinfomonitor(Shopeeshopinfomonitor shopeeshopinfomonitor)
    {
        return shopeeshopinfomonitorMapper.updateShopeeshopinfomonitor(shopeeshopinfomonitor);
    }

    /**
     * 删除shopee店铺监控对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteShopeeshopinfomonitorByIds(String ids)
    {
        return shopeeshopinfomonitorMapper.deleteShopeeshopinfomonitorByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除shopee店铺监控信息
     * 
     * @param shopid shopee店铺监控ID
     * @return 结果
     */
    @Override
    public int deleteShopeeshopinfomonitorById(String shopid)
    {
        return shopeeshopinfomonitorMapper.deleteShopeeshopinfomonitorById(shopid);
    }
}
